export default {
  state: {
    menuListData: [],
	subMenuList:[],
    foodPageList:[]
  },
  getters: {
	menuListData: state => state.menuListData,
    subMenuList: state => state.subMenuList,
    foodPageList: state => state.foodPageList
  },
  mutations: {
    saveMenuList(state, payload) {
      state.menuListData = payload
    },
    saveFoodPageList(state, payload) {
      state.foodPageList = payload
    },
	saveSubMenuList(state, payload) {
	  state.subMenuList = payload
	}
  },
  actions: {
    saveMenuListAction({ commit }, payload) {
      commit('saveMenuList', payload)
    },
    saveFoodPageListAction({ commit }, payload) {
      commit('saveFoodPageList', payload)
    },
	saveSubMenuListAction({ commit }, payload) {
	  commit('saveSubMenuList', payload)
	},
  }
}
